package com.wj.dao;



import com.wj.entity.Balance;
import org.springframework.data.jpa.repository.JpaRepository;


public interface BalanceDao extends JpaRepository<Balance, Long> {

    /**
     * 根据 userId 查询 账户余额
     *
     * @param userId
     * @return
     */
    Balance findByUserId(Long userId);
}
